import api from '@/common/api.js'

const ToggleCollectActive = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/WXUserCollect/ToggleCollectActive',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
	});
};

const GetCollectActive = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/WXUserCollect/GetCollectActive',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
	});
};

export default {
	ToggleCollectActive,
	GetCollectActive
};